package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author 2023
 */

@AllArgsConstructor
public enum DealTypeEnum implements IEnum<Integer> {

    /**
     * 线上
     */
    ONLINE(0,"线上"),
    /**
     * 充值
     */
    RECHARGE(1,"充值"),

    /**
     * 赠送
     */
    GIFT(2,"赠送"),
    /**
     * 线下
     */
    OFFLINE(3,"线下"),
    /**
     * 退款
     */
    REFUND(4,"退款"),
    /**
     * 消费分类
     */
    CONSUMPTION_CLASSIFICATION(11,"消费分类"),
    /**
     * 充值分类
     */
    RECHARGE_CLASSIFICATION(12,"充值分类"),
    /**
     * 赠送分类
     */
    GIFT_CLASSIFICATION(13,"赠送分类"),
    ALL(15,"全部"),
    ;

    @EnumValue
    @JsonValue
    private final Integer code;

    private final String status;

    public String getStatus() {
        return status;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
